package com.gao.buffered;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class BufferedStreamDemo2 {
    /*
     字符缓冲流的特有方法:

            pubLic String readLine()

            读取一行字符串，读取到末尾返回null

            pub1ic void newLine()

            写出换行符(具有跨平台性)

     */
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new FileReader("day11\\A.txt"));
        String s1= reader.readLine();
        System.out.println(s1);
    }
}
